#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;
#include <vector>

int main()
{

    class Solution {
    public:
        int singleNumber(vector<int>& nums) {
            int ret = 0;
            for (int i = 0; i < 32; i++) {
                int sum = 0;
                for (auto num : nums)
                    sum += (num >> i) & 1;
                if (sum % 3)
                    ret |= 1 << i;
            }
            return ret;
        }
    };

    cout << 1 << endl;


    return 0;
}